# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-arxiv
_pkgorig=arxiv.py
pkgver=1.4.2
pkgrel=0
pkgdesc="Python wrapper for the arXiv API"
url="https://github.com/lukasschwab/arxiv.py"
arch="noarch"
license="MIT"
depends="python3 py3-feedparser"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-flake8"
source="https://github.com/lukasschwab/arxiv.py/archive/$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
b5ac0d968b2a3473b64653f458f4c4aa0f3f2ee94df2ad0fa66f52ce718f2c8f84baaa3291b1d818051ce0abfa618f292b637625064ef7570bf97984e680d4ea  arxiv.py-1.4.2.tar.gz
"
